<div>
    <el-row class="container">
        <el-col :span="24" class="header" style="background:#fff">
          <!--  <el-col :span="5" class="logo" :class="'logo-width'">
                <a href="/" style="text-decoration:none;color:#FFFFFF;">-->
                    
<!--                </a>
            </el-col>-->
            <!-- <el-col :span="4" style="margin-left: 10px">
                艾尔智能科技后台管理系统
            </el-col> -->
            <div style="margin-left: 10px;float: left;height: 100%;">
                <img :src="mainLogo2" />
<!--                     艾尔智能科技后台管理系统
 -->
            </div>
            <el-col :span="10" class="userinfo">
                <el-dropdown trigger="hover">
                    <span class="el-dropdown-link userinfo-inner" v-html="helloInfo">

                    </span>
                    <el-dropdown-menu slot="dropdown">
                        <el-dropdown-item @click.native="showChangePwdWin=true">
                            修改密码
                        </el-dropdown-item>
                        <el-dropdown-item @click.native="loginOut">
                            注销登录
                        </el-dropdown-item>
                    </el-dropdown-menu>
                </el-dropdown>
            </el-col>
        </el-col>
        <div style="height:10px;width: 100%;background: #fff;clear: both;"></div>
        <el-col :span="24" class="main" >
            <aside :class="collapsed?'menu-collapsed':'menu-expanded'"  >
                <!--导航菜单-->
                <el-menu  unique-opened=true  v-bind:style=" collapsed ? {} : { 'width': '180px' } " :default-active="$route.path" class="el-menu-vertical-demo" router v-show="!collapsed">
                    <template v-for="(item,index) in menuData" v-if="!item.hidden&&getPermision(item)">
                        <el-submenu :index="index+''" v-if="!item.leaf">
                            <template slot="title">
                                <i :class="item.iconCls"></i>{{item.name}}
                            </template>
                            <el-menu-item style="min-width: 180px;" v-for="child in item.children" :index="child.path" :key="child.path" v-if="!child.hidden&&getPermision(child)">
                                {{child.name}}
                            </el-menu-item>
                        </el-submenu>
                        <el-menu-item v-if="item.leaf&&item.children.length>0" :index="item.children[0].path">
                            <i :class="item.iconCls"></i>{{item.children[0].name}}
                        </el-menu-item>
                    </template>
                </el-menu>
                <!--导航菜单-折叠后-->
                <ul class="el-menu el-menu-vertical-demo collapsed el-menu-collapsed" v-show="collapsed" ref="menuCollapsed">
                    <li v-for="(item,index) in menuData" v-if="!item.hidden" class="el-submenu item">
                        <template v-if="!item.leaf">
                            <div class="el-submenu__title" style="padding-left: 20px;" @mouseover="showMenu(index,true)" @mouseout="showMenu(index,false)">
                                <i :class="item.iconCls"></i>
                            </div>
                            <ul class="el-menu submenu" :class="'submenu-hook-'+index" @mouseover="showMenu(index,true)" @mouseout="showMenu(index,false)">
                                <li v-for="child in item.children" v-if="!child.hidden" :key="child.path" class="el-menu-item" style="padding-left: 40px;" :class="$route.path==child.path?'is-active':''" @click="$router.push(child.path)">
                                    {{child.name}}
                                </li>
                            </ul>
                        </template>
                        <template v-else>
                    <li class="el-submenu">
                        <div class="el-submenu__title el-menu-item" style="padding-left: 20px;height: 56px;line-height: 56px;padding: 0 20px;" :class="$route.path==item.children[0].path?'is-active':''" @click="$router.push(item.children[0].path)">
                            <i :class="item.iconCls"></i>
                        </div>
                    </li>
                    </template>
                    </li>
                </ul>
            </aside>
            <section class="content-container">
                <div class="grid-content bg-purple-light">
                    <!-- <el-col :span="24" class="breadcrumb-container">
                        <strong class="title">{{$route.name}}</strong>
                        <el-breadcrumb separator="/" class="breadcrumb-inner">
                            <el-breadcrumb-item v-for="item in $route.matched" :key="item.path">
                                {{ item.name }}
                            </el-breadcrumb-item>
                        </el-breadcrumb>
                    </el-col> -->
                    <el-col :span="24" class="content-wrapper">
                        <transition name="fade" mode="out-in">
                            <router-view></router-view>
                        </transition>
                    </el-col>
                </div>
            </section>
        </el-col>

    </el-row>

    <el-dialog title="修改密码" :visible.sync="showChangePwdWin"  width="30%">
        <el-form :model="cpForm">
            <el-form-item label="旧密码：" :label-width="formLabelWidth">
                <el-input type="password" v-model="cpForm.pwd" autocomplete="off"></el-input>
            </el-form-item>
            <el-form-item label="新密码：" :label-width="formLabelWidth">
                <el-input type="password" v-model="cpForm.pwdn" autocomplete="off"></el-input>
            </el-form-item>
            <el-form-item label="确认新密码：" :label-width="formLabelWidth">
                <el-input type="password" v-model="cpForm.pwdnc" autocomplete="off"></el-input>
            </el-form-item>
        </el-form>
        <div slot="footer" class="dialog-footer">
            <el-button @click="showChangePwdWin=false">取 消</el-button>
            <el-button type="primary" @click="changePwd">确 定</el-button>
        </div>
    </el-dialog>
</div>
